package second;
//抽象的父类Phone
public abstract class Phone {
    //私有属性
    private String number;//手机号码
    private String name;//当前使用者

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    //发短信
    public abstract void sendMsg();
    //打电话
    public abstract void call();
}
